"use strict";
var PublicModule = angular.module('PublicModule', []);
PublicModule.controller("PublicCtrl", ['$scope', '$interval', '$timeout', function($scope, $interval, $timeout) {
	var myDate = new Date();
	var NewDate = myDate.getFullYear() + "-" + myDate.getYear() + "-" + myDate.getDate();
	var NewHours = myDate.getHours() + ":" + myDate.getMinutes();
	$scope.userName = "隔壁老王"; //当前用户的名字
	$scope.userImg = "images/index/pl-tx.jpg"; //当前用户的头像
	var zanPics = ["images/index/dianzan/live_icon_heart_1.png", "images/index/dianzan/live_icon_heart_2.png", "images/index/dianzan/live_icon_donut_pink.png", "images/index/dianzan/live_icon_heart_3.png", "images/index/dianzan/live_icon_donut_brown.png", "images/index/dianzan/live_icon_heart_4.png", "images/index/dianzan/live_icon_heart_5.png", "images/index/dianzan/live_icon_heart_6.png", "images/index/dianzan/live_icon_flower_purple.png", "images/index/dianzan/live_icon_heart_7.png"]; //点赞图片
	$scope.count =0; //升级球经验值
	$scope.sendMsgNum = 0; //用户发送留言的计数
	$scope.dianzanNum = 0; //用户点赞的计数
	$scope.iSgift = false;
	$scope.iSgift_dec = false;
	$scope.isMsg = false;
	$scope.isCard = true;
//	$scope.EXPNum = 0; //默认经验值
	$scope.GiveXP = 50; //默认还差多少升级	
	let renkNmu1 = 0;
	let renkNmu2 = 0;
	let renkNmu3 = 0;
	let renkNmu4 = 0;
	let renkNmu5 = 0;
	let renkNmu6 = 0;
	let renkNmu7 = 0;
	let renkNmu8 = 0;
	let renkNmu9 = 0;
	let renkNmu10 = 0;
	//弹幕自动跑
	$scope.isDanmaku = true;
	//默认礼物
	var giftPlace = 0;
	//默认礼物数量
	$scope.giftNum = 1;
	//默认礼物价格
	$scope.giftPrice = 66;
	//收到的礼物数组
	$scope.giftArray = [];
	//点赞数组
	$scope.add_zan = [];
	//礼物弹窗显示
	$scope.gift_Danmaku_box = false;
	$scope.isGift_Danmaku_box = false;
	//礼物数据
	$scope.giftItems = [
		{ giftImg: "images/index/gift/gift1.png", giftPrice: 66, giftValue: 66 },
		{ giftImg: "images/index/gift/gift2.png", giftPrice: 88, giftValue: 88 },
		{ giftImg: "images/index/gift/gift3.png", giftPrice: 99, giftValue: 99 },
		{ giftImg: "images/index/gift/gift4.png", giftPrice: 166, giftValue: 166 },
		{ giftImg: "images/index/gift/gift5.png", giftPrice: 188, giftValue: 188 },
		{ giftImg: "images/index/gift/gift6.png", giftPrice: 199, giftValue: 199 },
		{ giftImg: "images/index/gift/gift7.png", giftPrice: 1314, giftValue: 1314 },
		{ giftImg: "images/index/gift/gift8.png", giftPrice: 5200, giftValue: 5200 }
	];
	//数据库留言数据
	$scope.lhMessage = [
		{ txt: "猪终于拱到白菜了", Imgsrc: "images/index/emoji/1-38.png" },
		{ txt: "我的女神就这样嫁了", Imgsrc: "images/index/emoji/1-30.png" },
		{ txt: "早生贵子", Imgsrc: "images/index/emoji/1-03.png" },
		{ txt: "百年好合，新婚快乐", Imgsrc: "./images/index/emoji/1-04.png" },
		{ txt: "儿子嫁出去了，爸爸终于放心了", Imgsrc: "./images/index/emoji/1-05.png" },
		{ txt: "新娘好美", Imgsrc: "./images/index/emoji/1-06.png" },
		{ txt: " 新娘如此可爱，新郎必定英俊不凡。", Imgsrc: "./images/index/emoji/1-07.png" },
		{ txt: "我是未来的隔壁老王", Imgsrc: "./images/index/emoji/1-08.png" },
		{ txt: "永！远！幸！福！", Imgsrc: "./images/index/emoji/1-09.png" },
		{ txt: "愿你们事事如愿，美满幸福。", Imgsrc: "./images/index/emoji/1-43.png" },
		{ txt: "抢我老婆", Imgsrc: "./images/index/emoji/1-23.png" },
		{ txt: "结婚不易，衷心祝福", Imgsrc: "./images/index/emoji/1-12.png" },
		{ txt: "日久见人心，大力出奇迹", Imgsrc: "./images/index/emoji/1-13.png" },
		{ txt: "新郎好帅", Imgsrc: "./images/index/emoji/1-14.png" },
		{ txt: "牛粪拉在鲜花上", Imgsrc: "./images/index/emoji/1-15.png" },
		{ txt: "新郎明明是我", Imgsrc: "./images/index/emoji/1-16.png" },
		{ txt: "有情人终成眷属", Imgsrc: "./images/index/emoji/1-17.png" },
		{ txt: "呵呵哒", Imgsrc: "./images/index/emoji/1-18.png" },
		{ txt: "哼，说好的一起做单身狗！", Imgsrc: "./images/index/emoji/1-24.png" },
		{ txt: "新娘美如画，我醉成诗", Imgsrc: "./images/index/emoji/1-20.png" },
		{ txt: "欢庆此日成佳偶，且喜今朝结良缘。", Imgsrc: "./images/index/emoji/1-21.png" },
		{ txt: "新手上路，小心驾驶", Imgsrc: "./images/index/emoji/1-22.png" }
	];
	//存弹幕的数组；
	$scope.BarMsg = [
		{ userName: $scope.userName, txt: "新手上路，小心驾驶", Imgsrc: "./images/index/emoji/1-22.png", isemoji_img: true },
	]
	//存弹幕的数组；
	$scope.MsgArray = [
		{ randomNum: 4, userName: $scope.userName, userImg: $scope.userImg, txt: "新手上路，小心驾驶", Imgsrc: "./images/index/emoji/1-22.png", isemoji_img: true }
	];
	//存爱情小屋消息的数组
	$scope.LHrecord = [
		{ recordTime: NewDate, userName: $scope.userName, userImg: $scope.userImg, txt: "新手上路，小心驾驶", ImgSrc: "./images/index/emoji/1-22.png", recordHours: NewHours, isemoji_img: true },
	];
	$scope.MsgArray = [
		{ randomNum: 4, userName: $scope.userName, userImg: $scope.userImg, txt: "新手上路，小心驾驶", Imgsrc: "./images/index/emoji/1-22.png", isemoji_img: true }
	];

	var dianzanI = $interval(function() {
		if($(".zan-pics").length > 3) {
			$(".zan-pics:eq(1)").remove();
		}
	}, 2000);

	var giftI = $interval(function() {
		$scope.giftArray.splice(0, 1)
	}, 2200);

	$scope.$on('$destroy', function() {
		$interval.cancel(dianzanI);
		$interval.cancel(giftI);
	})

	//级别函数
	

	class levelFun {
		rankFun1() {			
			let addOne1 = $timeout(function() {
				$('.loveHouseBox').html(`<div class="MarryScene">
					<div id="scene1">
						<img src="images/index/loveHouse/MarryScene/MarryScene_BG1.png" alt="结婚场景背景1" class="MarryScene_BG1" />
						<img src=" images/index/loveHouse/MarryScene/MarryScene_BG2.png " alt="结婚场景背景1 " class="MarryScene_BG2 "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud1 "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud2 "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud3 "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud4 "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud5 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree1.png " alt="树木 " class="MarryScene_tree MarryScene_tree1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree1.png " alt="树木 " class="MarryScene_tree MarryScene_tree2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree2.png " alt="树木 " class="MarryScene_tree MarryScene_tree3 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree2.png " alt="树木 " class="MarryScene_tree MarryScene_tree4 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree5 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree6 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree7 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree8 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1.png " alt="观众 " class="MarryScene_audienc1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand1.png " alt="手 " class="MarryScene_audienc1_hand1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand2.png " alt="手 " class="MarryScene_audienc1_hand2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_Boy_eye2.png " alt="眼睛 " class="MarryScene_Boy_eye1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_Boy_eye2.png " alt="眼睛 " class="MarryScene_Boy_eye2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_audienc2.png " alt="观众 " class="MarryScene_audienc2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand1.png " alt="手 " class="MarryScene_audienc2_hand1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand2.png " alt="手 " class="MarryScene_audienc2_hand2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_girl_eye2.png " alt="眼睛 " class="MarryScene_girl_eye1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_girl_eye3.png " alt="眼睛 " class="MarryScene_girl_eye2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_speak1.png " alt="观众特效 " class=" MarryScene_speak1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_speak1.png " alt="观众特效 " class=" MarryScene_speak2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_speak3.png " alt="观众特效 " class=" MarryScene_speak3 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_lace.png " alt="花边 " class="MarryScene_lace " />
						<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="MarryScene_Butterfly MarryScene_Butterfly1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="MarryScene_Butterfly MarryScene_Butterfly2 " />
						<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="MarryScene_Butterfly MarryScene_Butterfly3 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower3 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower4 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower5 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower6 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower7 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower8 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower9 "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart1 " />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart2 " />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart3 " />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart4 " />
					</div>
					<div id="marryBoy">
						<img src="images/index/loveHouse/MarryScene/MarryScene_boy.png " alt="男猪脚 " class="MarryScene_boy "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_hands.png " alt="手 " class="MarryScene_hands1 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_hands.png " alt="手 " class="MarryScene_hands2 "/>
						<img src="images/index/loveHouse/MarryScene/MarryScene_ring.png " alt="戒指 " class="MarryScene_ring "/>
						<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png " alt="闪光 "class="MarryScene_shine " />
					</div>
					<div id='marryGirl'>
						<img src="images/index/loveHouse/MarryScene/MarryScene_girl.png " alt="女猪脚 " class="MarryScene_girl "/>
						<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png " alt="眼泪 " class="MarryScene_tear "/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png " alt="腮红 " class="MarryScene__blusher " />
					</div>	
		</div>`)
			
			}, 1);
			$timeout.cancel([addOne1]);
		};		
		rankFun2() {
			$("#scene1").fadeOut(3000); //过渡
			let addOne1 = $timeout(function() {
				$('.loveHouseBox').html(`<div class="loveHouseCartoon2">				
					<div class="marryPop">
						<img src="images/index/loveHouse/loveHouse2/loveHouse_boy.png" alt="男猪脚"class="loveHouse_boy" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红"class="loveHouse_boyBlusher" />			
						<img src="images/index/loveHouse/loveHouse2/loveHouse_girl.png" alt="女猪脚"class="loveHouse_girl" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红"class="loveHouse_girlBlusher" />			
					</div>
				</div>`);
			}, 3000);
			
			let addOne2 = $timeout(function() {
				$(".loveHouseCartoon2").append(`<div class="marrySce" style="display:none;">
					<img src="images/index/loveHouse/loveHouse2/loveHouse_BGBG2.png" alt="场景背景"class="loveHouse_BGBG2" />
					<img src="images/index/loveHouse/loveHouse2/loveHourse_adorn.png" alt="场景背景"class="loveHourse_adorn" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_BG2.png" alt="场景背景"class="loveHouse_BG2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_leftPurdah.png" alt="场景背景"class="loveHouse_leftPurdah" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_rightPurdah.png" alt="场景背景"class="loveHouse_rightPurdah" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_leftaDorn.png" alt="场景背景"class="loveHouse_leftaDorn" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_rightaDorn.png" alt="场景背景"class="loveHouse_rightaDorn" />			
					<img src="images/index/loveHouse/loveHouse2/loveHouse_lamplight.png" alt="场景背景"class="loveHouse_lamplight1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_lamplight.png" alt="场景背景"class="loveHouse_lamplight2" />			
					<img src="images/index/loveHouse/loveHouse2/loveHouse_siteFloor.png" alt="地板砖"class="loveHouse_siteFloor" />			
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart3" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart3" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart4" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart4" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart5" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart5" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart6" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart6" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart7" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart7" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart8" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart8" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine3" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine4" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine5" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine6" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine7" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine8" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine9" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine10" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute1.png" alt="气球1"class="loveHouse_ballute1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute2.png" alt="气球2"class="loveHouse_ballute2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute3.png" alt="气球3"class="loveHouse_ballute3" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute4.png" alt="气球4"class="loveHouse_ballute4" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_father.png" alt="父亲"class="loveHouse_father" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_mother.png" alt="母亲"class="loveHouse_mother" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear3" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear4" />
				</div>`);
			}, 5000)
			
			let addone3=$timeout(function(){
				  $(".marrySce").fadeIn(2000);
			},5001)
			  
			$timeout.cancel([addOne1, addOne2]);
		};
		rankFun3() {
			$(".marrySce").fadeOut(3000); //过渡
			let addTow1 = $timeout(function() {
				$('.loveHouseBox').html(`<div class="loveHouseCartoon1">				
					<div class="loveWorldPop">
						<img src="images/index/loveHouse/loveHouse1/loveHouse_boy.png" alt="男猪脚" class="loveHouseBoy" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_boyEye.png" alt="眼睛" class="loveHouse_boyEye loveHouse_boyEye1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_boyEye.png" alt="眼睛" class="loveHouse_boyEye loveHouse_boyEye2" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_ladle.png" alt="勺子" class="loveHouse_ladle" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="水蒸气" class="loveHouseReek1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="水蒸气" class="loveHouseReek2" />						
						<img src="images/index/loveHouse/loveHouse1/loveHouse_girl.png" alt="女猪脚" class="loveHouseGirl" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_girlEye.png" alt="左眼" class="loveHouse_girlEye1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_girlEye.png" alt="右眼" class="loveHouse_girlEye2" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_mouth1.png" alt="嘴巴" class="loveHouse_mouth" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_leftHand.png" alt="左手" class="loveHouse_leftHand" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_rightHand.png" alt="右手" class="loveHouse_rightHand" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="loveHouse_blusher loveHouse_blusher1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="loveHouse_blusher loveHouse_blusher2" />				
					</div>
				</div>`);
			}, 3000);
			let addTow2 = $timeout(function() {
				$(".loveHouseCartoon1").append(`<div class="loveWorldCon" style="display:none;">
						<img src="images/index/loveHouse/loveHouse1/loveHouse_Bg.png" alt="背景" class="loveHouse_Bg" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blind.png" alt="窗帘" class="loveHouseBlind" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_window.png" alt="窗户" class="loveHouseWindow" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="loveHouseCloud" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cutlery.png" alt="餐具" class="loveHouseCutlery" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_TV.png" alt="电视" class="loveHouseTV" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_hearth.png" alt="灶台" class="loveHouseHearth" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam2" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam3" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam4" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam5" />						
						<img src="images/index/loveHouse/loveHouse1/loveHouse_foolr.png" alt="地板" class="loveHouseFoolr" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_rug.png" alt="地毯" class="loveHouseRug" />			
						<img src="images/index/loveHouse/loveHouse1/loveHouse_carpet.png" alt="地毯" class="loveHouseCarpet" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_desk.png" alt="桌子" class="loveHouseDesk" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_cup.png" alt="杯子" class="loveHouseCup" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_dish.png" alt="盘子" class="loveHouseDish" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart2" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart3" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart4" />						
					</div>`);
			}, 5000);
			let addTow3=$timeout(function(){
				$(".loveWorldCon").fadeIn(2000);
			},5001)
			$timeout.cancel([addTow1, addTow2,addTow3])
		};
		rankFun4() {
			$(".loveWorldCon").fadeOut(3000); //过渡
			let addthree1 = $timeout(function() {
				$('.loveHouseBox').html(`<div class="pregNan">
					<div class=pregNanPop">
						<!-- 男猪脚 -->
						<img src="images/index/loveHouse/pregNan/pregNan_boy.png" alt="男猪脚"class="pregNan_boy" />
						<img src="images/index/loveHouse/pregNan/pregNan_foot.png" alt="脚"class="pregNan_foot" />
						<img src="images/index/loveHouse/pregNan/pregNan_boy_eye.png" alt="眼睛"class="pregNan_boy_eye" />
						<!-- 女猪脚 -->
						<img src="images/index/loveHouse/pregNan/pregNan_girl.png" alt="女猪脚"class="pregNan_girl" />
						<img src="images/index/loveHouse/pregNan/pregNan_hands.png" alt="手"class="pregNan_hands" />
						<img src="images/index/loveHouse/pregNan/pregNan_girl_eye.png" alt="眼睛"class="pregNan_girl_eye" />	
					</div>
				</div>`);
			}, 3000);
			let addthree2 = $timeout(function() {				
				$(".pregNan").append(`<div class="pregNanSce" style="display:none;">
					<img src="images/index/loveHouse/pregNan/pregNan_bg.png" alt="背景"class="pregNan_bg" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_foolr.png" alt="地板"class="pregNan_foolr" />
					<img src="images/index/loveHouse/pregNan/pregNan_window.png" alt="窗户"class="pregNan_window" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="pregNan_cloud pregNan_cloud1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="pregNan_cloud pregNan_cloud2" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="pregNan_cloud pregNan_cloud3" />
					<img src="images/index/loveHouse/pregNan/pregNan_blind.png" alt="窗帘"class="pregNan_blind" />
					<img src="images/index/loveHouse/pregNan/pregNan_mural1.png" alt="壁画"class="pregNan_mural1" />
					<img src="images/index/loveHouse/pregNan/pregNan_mural2.png" alt="壁画"class="pregNan_mural2" />
					<img src="images/index/loveHouse/pregNan/pregNan_mural3.png" alt="壁画"class="pregNan_mural3" />
					<img src="images/index/loveHouse/pregNan/pregNan_lamp1.png" alt="灯"class="pregNan_lamp1" />
					<img src="images/index/loveHouse/pregNan/pregNan_face.png" alt="小笑脸"class="pregNan_face" />						
					<!-- 掉着的星星 -->
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star1" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star2" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star3" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star4" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star5" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star6" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star7" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star8" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star9" />
					<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star10" />					
					<!-- 地毯 -->
					<img src="images/index/loveHouse/pregNan/pregNan_rug.png" alt="地毯"class="pregNan_rug" />
					<!-- 枕头 -->
					<img src="images/index/loveHouse/pregNan/pregNan_tomato.png" alt="枕头"class="pregNan_tomato" />
					<img src="images/index/loveHouse/pregNan/pregNan_pillow1.png" alt="枕头"class="pregNan_pillow1" />
					<img src="images/index/loveHouse/pregNan/pregNan_pillow2.png" alt="枕头"class="pregNan_pillow2" />
					<img src="images/index/loveHouse/pregNan/pregNan_pillow2.png" alt="枕头"class="pregNan_pillow3" />
					<!-- 果盘 -->
					<img src="images/index/loveHouse/pregNan/pregNan_compote.png" alt="果盘"class="pregNan_compote" />			
				<!-- 书本 -->
					<img src="images/index/loveHouse/pregNan/pregNan_book.png" alt="书本"class="pregNan_book" />
				<!-- 爱心 -->
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart1" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart2" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart3" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart4" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart5" />
				<!-- 蝴蝶 -->
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="pregNan_Butterfly pregNan_Butterfly1 "/>
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="pregNan_Butterfly pregNan_Butterfly2 " />
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="pregNan_Butterfly pregNan_Butterfly3 "/>
				</div>`);
				
			},5000)
			
			let addthree3=$timeout(function(){
				$(".pregNanSce").fadeIn(2000);
			},5001)
			
			
			$timeout.cancel([addthree1, addthree2,addthree3]);
		};
		rankFun5() {
			$(".pregNanSce").fadeOut(3000); //过渡
			let addfour1 = $timeout(function() {
				$('.loveHouseBox').html(`<div class="newLife">
					<div class="newLifePop">
						<img src="images/index/loveHouse/newLife/newLife_boy_cnt.png" alt="男猪脚_身体" class="newLife_boy_cnt" />
						<img src="images/index/loveHouse/newLife/newLife_boy_head.png" alt="男猪脚_头部" class="newLife_boy_head" />	
						<img src="images/index/loveHouse/newLife/newLife_boy_hands2.png" alt="男猪脚_手" class="newLife_boy_hands1" />
						<img src="images/index/loveHouse/newLife/newLife_boy_hands.png" alt="男猪脚_手" class="newLife_boy_hands2" />
						<img src="images/index/loveHouse/newLife/newLife_baby.png" alt="BaBy" class="newLife_baby" />
						<img src="images/index/loveHouse/newLife/newLife_baby_mouth.png" alt="嘴巴" class="newLife_baby_mouth" />
						<img src="images/index/loveHouse/newLife/newLife_babyEye.png" alt="眼睛" class="newLife_babyEye" />
						<img src="images/index/loveHouse/newLife/newLife_tear.png" alt="眼泪" class="newLife_tear1" />
						<img src="images/index/loveHouse/newLife/newLife_tear.png" alt="眼泪" class="newLife_tear2" />		
						<img src="images/index/loveHouse/newLife/newLife_try.png" alt="哭声" class="newLife_try" />
						<img src="images/index/loveHouse/newLife/newLife_gril_head.png" alt="女猪脚_头部" class="newLife_gril_head" />
						<img src="images/index/loveHouse/newLife/newLife_gril_eye1.png" alt="女猪脚_眼睛" class="newLife_gril_eye" />
						<img src="images/index/loveHouse/newLife/newLife_gril_cnt.png" alt="女猪脚_身体" class="newLife_gril_cnt" />
						<img src="images/index/loveHouse/newLife/newLife_gril_hand.png" alt="女猪脚_手" class="newLife_gril_hand1" />
						<img src="images/index/loveHouse/newLife/newLife_gril_hand2.png" alt="女猪脚_手" class="newLife_gril_hand2" />
						<img src="images/index/loveHouse/newLife/newLife_nai.png" alt="奶" class="newLife_nai"/>
					</div>		
				</div>`);
			}, 3000);
			let addfour2 = $timeout(function() {
				$(".newLife").append(`<div class="newLifeSce" style="display:none;">
					<img src="images/index/loveHouse/newLife/newLife_bg1.png" alt="背景" class="newLife_bg1" />
					<img src="images/index/loveHouse/newLife/newLife_bg2.png" alt="背景" class="newLife_bg2" />
					<img src="images/index/loveHouse/newLife/newLife_floor.png" alt="地板" class="newLife_floor" />
					<img src="images/index/loveHouse/newLife/newLife_window.png" alt="窗户" class="newLife_window" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="newLife_cloud1" />
					<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="玻璃" class="loveHouse_glass1" />
					<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="玻璃" class="loveHouse_glass2" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="newLife_cloud" />					
					<img src="images/index/loveHouse/newLife/newLife_lamp.png" alt="灯座" class="newLife_lamp" />
					<img src="images/index/loveHouse/newLife/newLife_pendantLamp1.png" alt="吊灯" class="newLife_pendantLamp1" />
					<img src="images/index/loveHouse/newLife/newLife_pendantLamp2.png" alt="吊灯" class="newLife_pendantLamp2" />
					<img src="images/index/loveHouse/newLife/newLife_pendantLamp3.png" alt="吊灯" class="newLife_pendantLamp3" />
					<img src="images/index/loveHouse/newLife/newLife_pendantLamp4.png" alt="吊灯" class="newLife_pendantLamp4" />
					<img src="images/index/loveHouse/newLife/newLife_table.png" alt="桌子" class="newLife_table" />
					<img src="images/index/loveHouse/newLife/newLife_cup.png" alt="杯子" class="newLife_cup" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="newLife_Steam1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="newLife_Steam2" />						
					<img src="images/index/loveHouse/newLife/newLife_pot.png" alt="壶" class="newLife_pot" />
					<img src="images/index/loveHouse/newLife/newLife_book.png" alt="书" class="newLife_book1" />
					<img src="images/index/loveHouse/newLife/newLife_book.png" alt="书" class="newLife_book2" />
					<img src="images/index/loveHouse/newLife/newLife_rug.png" alt="地毯" class="newLife_rug" />					
					<img src="images/index/loveHouse/newLife/newLife_shoe.png" alt="鞋子" class="newLife_shoe1" />
					<img src="images/index/loveHouse/newLife/newLife_shoe.png" alt="鞋子" class="newLife_shoe2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine1" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine3" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine4" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine5" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine6" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine7" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine8" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine9" />
					<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star1" />
					<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star2" />
					<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star3" />
					<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star4" />
					<img src="images/index/loveHouse/newLife/newLife_cage.png" alt="罩罩" class="newLife_cage" />
					<img src="images/index/loveHouse/newLife/newLife_kato.png" alt="章鱼" class="newLife_kato" />
					<img src="images/index/loveHouse/newLife/newLife_pingpang.png" alt="章鱼" class="newLife_pingpang" />	
				</div>`);
			}, 5000)
			
			let addfour3=$timeout(function(){
				$(".newLifeSce").fadeIn(2000);
			},5001)
			
			$timeout.cancel([addfour1, addfour2,addfour3]);
		};
		rankFun6() {
			$(".newLifeSce").fadeOut(3000); //过渡
			let addfour1 = $timeout(function() {
				$('.loveHouseBox').html(`<div id="travel">
					<div class="travelPop">
						<img src="images/index/loveHouse/travel/travel_girl.png" alt="女猪脚"  id="travel_girl"/>
						<img src="images/index/loveHouse/travel/travel_girl_hand.png" alt="女猪脚_手" id="travel_girl_hand"/>
						<img src="images/index/loveHouse/travel/travel_child.png" alt="小孩"  id="travel_child"/>
						<img src="images/index/loveHouse/travel/travel_child_eye1.png" alt="小孩眼睛"  id="travel_child_eye"/>							
						<img src="images/index/loveHouse/travel/travel_boy.png" alt="男猪脚"  id="travel_boy"/>
						<img src="images/index/loveHouse/travel/travel_boy_eye.png" alt="男眼睛"  id="travel_boy_eye1"/>
						<img src="images/index/loveHouse/travel/travel_boy_eye.png" alt="男眼睛"  id="travel_boy_eye2"/>					
						<img src="images/index/loveHouse/travel/travel_bottle.png" alt="瓶子"  id="travel_bottle"/>
					</div>
			</div>`);
			}, 3000);
			let addfour2 = $timeout(function() {
				$('.newLife').css('background','#edeed8');
				$("#travel").append(`<div class="travelSce" style="display:none;">					
					<img src="images/index/loveHouse/travel/travel_bg1.png" alt="背景1"  id="travel_bg1"/>
					<img src="images/index/loveHouse/travel/travel_bg2.png" alt="背景2"  id="travel_bg2"/>
					<img src="images/index/loveHouse/travel/travel_flower.png" alt="地板"  id="travel_flower"/>
					<img src="images/index/loveHouse/travel/travel_byobu.png" alt="屏风"  id="travel_byobu"/>
					
					<img src="images/index/loveHouse/travel/travel_lamp.png" alt="灯1"  id="travel_lamp1"/>
					<img src="images/index/loveHouse/travel/travel_lamp2.png" alt="灯2"  id="travel_lamp2"/>
					<img src="images/index/loveHouse/travel/travel_lamp.png" alt="灯3"  id="travel_lamp3"/>
					<img src="images/index/loveHouse/travel/travel_Tlamp.png" alt="灯3"  id="travel_lamp4"/>
					<img src="images/index/loveHouse/travel/travel_click.png" alt="钟"  id="travel_click"/>
					<img src="images/index/loveHouse/travel/travel_second.png" alt="钟"  id="travel_second"/>
					<img src="images/index/loveHouse/travel/travel_mural.png" alt="挂画"  id="travel_mural"/>
					<img src="images/index/loveHouse/travel/travel_rug.png" alt="地毯"  id="travel_rug"/>
					
					
					<img src="images/index/loveHouse/travel/travel_clothes1.png" alt="衣服"  id="travel_clothes1"/>
					<img src="images/index/loveHouse/travel/travel_clothes2.png" alt="衣服"  id="travel_clothes2"/>
					<img src="images/index/loveHouse/travel/travel_clothes3.png" alt="衣服"  id="travel_clothes3"/>
					<img src="images/index/loveHouse/travel/travel_camera.png" alt="相机"  id="travel_camera"/>
					<img src="images/index/loveHouse/travel/travel_box.png" alt="箱子"  id="travel_box"/>
					<img src="images/index/loveHouse/travel/travel_cable.png" alt="数据线"  id="travel_cable"/>
					<img src="images/index/loveHouse/travel/travel_comb.png" alt="梳子"  id="travel_comb"/>
					<img src="images/index/loveHouse/travel/travel_vial.png" alt="药瓶"  id="travel_vial"/>
					<img src="images/index/loveHouse/travel/travel_cap.png" alt="帽子"  id="travel_cap"/>
					<img src="images/index/loveHouse/travel/travel_toothbrush.png" alt="牙刷"  id="travel_toothbrush"/>
					<img src="images/index/loveHouse/travel/travel_Flugkarte.png" alt="飞机票"  id="travel_Flugkarte"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star1"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star2"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star3"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star4"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star5"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star6"/>
					<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star7"/>
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart1" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart2" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart3" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart4" />
					<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart5" />
					
					
				</div>`);
			}, 5000)
			
			let addfour3=$timeout(function(){
				$(".travelSce").fadeIn(2000);
			},5001)
			
			$timeout.cancel([addfour1, addfour2,addfour3]);
		};
		rankFun7() {
			$(".newLifeSce").fadeOut(3000); //过渡
			let addfive1 = $timeout(function() {
				$('.loveHouseBox').html(`<div id="farewell">
					<div class="farewellPop">					
						<img src="images/index/loveHouse/farewell/farewell_Ded.png" alt="父亲" id="farewell_Ded" />
						<img src="images/index/loveHouse/farewell/farewell_Ded_hand.png" alt="父亲_手" id="farewell_Ded_hand" />
						<img src="images/index/loveHouse/farewell/farewell_Mom.png" alt="母亲" id="farewell_Mom" />
						<img src="images/index/loveHouse/farewell/farewell_Mom_eye.png" alt="母亲_眼睛" id="farewell_Mom_eye" />
						<img src="images/index/loveHouse/farewell/farewell_Mom_eye2.png" alt="母亲_眼睛" id="farewell_Mom_eye2" />
						<img src="images/index/loveHouse/farewell/farewell_Mom_eye2.png" alt="母亲_眼睛" id="farewell_Mom_eye3" />
						<img src="images/index/loveHouse/farewell/farewell_Mom_tear.png" alt="母亲_眼泪" id="farewell_Mom_tear1" />
						<img src="images/index/loveHouse/farewell/farewell_Mom_tear.png" alt="母亲_眼泪" id="farewell_Mom_tear2" />								
					</div>		
			</div>`);
			}, 3000);
			let addfive2 = $timeout(function() {
				$("#farewell").append(`<div class="travelSce" style="display:none;">
					<img src="images/index/loveHouse/farewell/farewell_clelo.png" alt="背景1" id="farewell_clelo"/>
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="farewell_cloud1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="farewell_cloud2" />
					<img src="images/index/loveHouse/farewell/farewell_tree1.png" alt="草丛" id="farewell_tree1" />					
					<img src="images/index/loveHouse/farewell/farewell_floor.png" alt="地板" id="farewell_floor"/>
					<img src="images/index/loveHouse/farewell/farewell_house.png" alt="背景1" id="farewell_house"/>					
					<img src="images/index/loveHouse/farewell/farewell_tree2.png" alt="草丛" id="farewell_tree2" />
					<img src="images/index/loveHouse/recall/recall_tree5.png" alt="草丛" id="farewell_tree3" />
					<img src="images/index/loveHouse/farewell/farewell_tree3.png" alt="草丛" id="farewell_tree4" />	
					<img src="images/index/loveHouse/farewell/farewell_leaf1.png" alt="叶子" id="farewell_leaf1" />	
					<img src="images/index/loveHouse/farewell/farewell_leaf1.png" alt="叶子" id="farewell_leaf2" />	
					<img src="images/index/loveHouse/farewell/farewell_leaf1.png" alt="叶子" id="farewell_leaf3" />	
					<img src="images/index/loveHouse/farewell/farewell_leaf2.png" alt="叶子" id="farewell_leaf4" />	
					<img src="images/index/loveHouse/farewell/farewell_leaf2.png" alt="叶子" id="farewell_leaf5" />						
					<img src="images/index/loveHouse/farewell/farewell_girl_hand.png" alt="孩子_手" id="farewell_girl_hand" />					
					<img src="images/index/loveHouse/farewell/farewell_girl_body.png" alt="孩子_身体" id="farewell_girl_body" />		
					<img src="images/index/loveHouse/farewell/farewell_girl_head.png" alt="孩子_头" id="farewell_girl_head" />					
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly1"/>
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly2" />
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly3"/>
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly4" />
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly5"/>					
				</div>`);
			}, 5000)
			let addfive3=$timeout(function(){
				$(".travelSce").fadeIn(2000);
			},5001)
			
			$timeout.cancel([addfive1, addfive2,addfive3]);
		};
		rankFun8() {
			$(".travelSce").fadeOut(3000); //过渡
			let addeight1 = $timeout(function() {
				$('.loveHouseBox').html(`<div class="MeetPar">
					<div class="MeetParPop">					
						<img src="images/index/loveHouse/meetPar/meetPar_sofa1.png" alt="沙发1" class="meetPar_sofa1"/>
						<img src="images/index/loveHouse/meetPar/meetPar_sofa2.png" alt="沙发2" class="meetPar_sofa2"/>
						<img src="images/index/loveHouse/meetPar/meetPar_sofa2.png" alt="沙发3" class="meetPar_sofa3"/>
						<img src="images/index/loveHouse/meetPar/meetPar_table.png" alt="桌子" class="meetPar_table"/>
						<img src="images/index/loveHouse/meetPar/meetPar_Mom.png" alt="妈妈" class="meetPar_Mom"/>
						<img src="images/index/loveHouse/meetPar/meetPar_Mom_hand.png" alt="妈妈_手" class="meetPar_Mom_hand"/>						
						<img src="images/index/loveHouse/meetPar/meetPar_Ded.png" alt="爸爸" class="meetPar_Ded"/>	
						<img src="images/index/loveHouse/meetPar/meetPar_Ded_mouth1.png" alt="爸爸_嘴巴" class="meetPar_Ded_mouth"/>	
						<img src="images/index/loveHouse/meetPar/meetPar_boy.png" alt="boy" class="meetPar_boy"/>
						<img src="images/index/loveHouse/meetPar/meetPar_boy_mouth1.png" alt="boy_嘴巴" class="meetPar_boy_mouth"/>
						<img src="images/index/loveHouse/meetPar/meetPar_boy_blusher.png" alt="boy_腮红" class="meetPar_boy_blusher"/>
						<img src="images/index/loveHouse/meetPar/meetPar_girl_body.png" alt="女主_身体" class="meetPar_girl_body"/>
						<img src="images/index/loveHouse/meetPar/meetPar_girl_head.png" alt="女主_头" class="meetPar_girl_head"/>
						<img src="images/index/loveHouse/meetPar/meetPar_boy_blusher.png" alt="girl_腮红" class="meetPar_girl_blusher"/>		
						<img src="images/index/loveHouse/meetPar/meetPar_girl_hand.png" alt="女主-手" class="meetPar_girl_hand"/>						
					</div>		
			</div>`);
			}, 3000);
			let addeight2 = $timeout(function() {
				$(".MeetPar").append(`<div class="MeetParSce" style="display:none;">							
					<img src="images/index/loveHouse/pregNan/pregNan_bg.png" alt="背景" class="meetpar_bg"/>
					<img src="images/index/loveHouse/meetPar/meetPar_window.png" alt="窗户" class="meetPar_window"/>
					<img src="images/index/loveHouse/meetPar/meetPar_blind.png" alt="窗帘" class="meetPar_blind"/>
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="meetPar_cloud1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="meetPar_cloud2" />
					<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="光圈" class="meetPar_glass1" />
					<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="光圈" class="meetPar_glass2" />
					<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="光圈" class="meetPar_glass3" />
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png" alt="蝴蝶" class="meetPar_Butterfly1" />
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png" alt="蝴蝶" class="meetPar_Butterfly2" />
					<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png" alt="蝴蝶" class="meetPar_Butterfly3" />	
					<img src="images/index/loveHouse/meetPar/meetPar_lamp.png" alt="灯1" class="meetPar_lamp1"/>
					<img src="images/index/loveHouse/meetPar/meetPar_lamp.png" alt="灯2" class="meetPar_lamp2"/>
					<img src="images/index/loveHouse/meetPar/meetPar_lamp.png" alt="灯3" class="meetPar_lamp3"/>
					<img src="images/index/loveHouse/meetPar/meetPar_book.png" alt="书1" class="meetPar_book1"/>
					<img src="images/index/loveHouse/meetPar/meetPar_book.png" alt="书2" class="meetPar_book2"/>
					<img src="images/index/loveHouse/meetPar/meetPar_mural1.png" alt="壁画" class="meetPar_mural1"/>
					<img src="images/index/loveHouse/meetPar/meetPar_mural2.png" alt="壁画" class="meetPar_mural2"/>
					<img src="images/index/loveHouse/meetPar/meetPar_water.png" alt="饮水机" class="meetPar_water"/>		
					<img src="images/index/loveHouse/meetPar/meetPar_floor.png" alt="地板" class="meetPar_floor"/>		
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam2" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam3" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam4" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam5" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam6" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam7" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam8" />
					<img src="images/index/loveHouse/meetPar/meetPar_rug.png" alt="地毯" class="meetPar_rug"/>			
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="爱心" class="meetPar_heart1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="meetPar_heart2" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="爱心" class="meetPar_heart3" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="meetPar_heart4" />
					<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="爱心" class="meetPar_heart5" />		
					<img src="images/index/loveHouse/dialogue.png" alt="对话" class="meetPar_dialogue1" />
					<img src="images/index/loveHouse/dialogue.png" alt="对话" class="meetPar_dialogue2" />							
				</div>`);
			}, 5000);
			let addeight3=$timeout(function(){
				$(".MeetParSce").fadeIn(2000);
			},5001)
			
			
			$timeout.cancel([addeight1, addeight2,addeight3]);
		};
		rankFun9() {
			$(".MeetParSce").fadeOut(3000); //过渡
			let addnine1 = $timeout(function() {
				$('.loveHouseBox').html(`<div id="family">
					<div class="familyPop">	
						<img src="images/index/loveHouse/family/family_Ded.png" alt="Ded" id="family_Ded" />					
						<img src="images/index/loveHouse/family/family_boy_hand1.png" alt="boy身体" id="family_boy_hand1" />
						<img src="images/index/loveHouse/family/family_boy_hand2.png" alt="boy身体" id="family_boy_hand2" />
						<img src="images/index/loveHouse/family/family_boy_body.png" alt="boy身体" id="family_boy_body" />						
						<img src="images/index/loveHouse/family/family_rug_chair.png" alt="地毯" id="family_rug_chair" />					
						<img src="images/index/loveHouse/family/family_girl.png" alt="女猪脚" id="family_girl" />
						<img src="images/index/loveHouse/family/family_girl_eye2.png" alt="女猪脚_眼睛" id="family_girl_eye" />
						<img src="images/index/loveHouse/family/family_mouth1.png" alt="小孩嘴巴" id="family_mouth" />				
						<img src="images/index/loveHouse/family/family_Mom.png" alt="Mom" id="family_Mom" />
					</div>		
			</div>`);
			}, 3000);
			let addnine2 = $timeout(function() {
				$(".family").append(`<div class="familySce" style="display:none;">							
					<img src="images/index/loveHouse/pregNan/pregNan_bg.png" alt="背景1" id="family_bg" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_foolr.png" alt="地板" id="family_floor" />
					<img src="images/index/loveHouse/family/family_lamp.png" alt="灯1" id="family_lamp1" />
					<img src="images/index/loveHouse/family/family_lamp.png" alt="灯2" id="family_lamp2" />
					<img src="images/index/loveHouse/family/family_lamp.png" alt="灯3" id="family_lamp3" />
					<img src="images/index/loveHouse/family/family_bookcase.png" alt="书柜" id="family_bookcase" />
					<img src="images/index/loveHouse/family/family_locker.png" alt="抽屉" id="family_locker" />
					<img src="images/index/loveHouse/family/family_byobu.png" alt="屏风" id="family_byobu" />
					<img src="images/index/loveHouse/family/family_mural.png" alt="壁画" id="family_mural" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star1" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star2" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star3" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star4" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star5" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star6" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star7" />		
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star9" />
					<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star8" />					
					<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker1" />
					<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker5" />
					<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker2" />
					<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker6" />
					<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker3" />
					<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker7" />
					<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker4" />
					<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker8" />
					<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker9" />
					<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker10" />
			</div>`);
			}, 5000)
			
			let addnine3=$timeout(function(){
				$(".familySce").fadeIn(2000);
			},5001)
			$timeout.cancel([addnine1, addnine2,addnine3]);
		};
		rankFun10() {
			$(".familySce").fadeOut(3000); //过渡
			let addten1 = $timeout(function() {
				$('.loveHouseBox').html(`<div id='recall'>					
						<img src="images/index/loveHouse/recall/recall_seat.png" alt="椅子" id="recall_seat"/>
						<img src="images/index/loveHouse/recall/recall_boy.png" alt="男猪脚" id="recall_boy"/>
						<img src="images/index/loveHouse/recall/recall_boy_hand.png" alt="男猪脚_手" id="recall_boy_hand"/>
						<img src="images/index/loveHouse/recall/recall_boy_eye1.png" alt="男猪脚_眼睛" id="recall_boy_eye"/>
						
						<img src="images/index/loveHouse/recall/recall_girl.png" alt="女猪脚" id="recall_girl"/>
						<img src="images/index/loveHouse/recall/recall_girl_hand.png" alt="女猪脚_手" id="recall_girl_hand"/>
						<img src="images/index/loveHouse/recall/recall_girl_eye1.png" alt="女猪脚_眼睛" id="recall_girl_eye"/>
						
						<img src="images/index/loveHouse/recall/recall_Ded.png" alt="父亲" id="recall_Ded"/>
						<img src="images/index/loveHouse/recall/recall_Ded_head.png" alt="父亲_头部" id="recall_Ded_head"/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher1" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher2" />
						<img src="images/index/loveHouse/recall/recall_Mom.png" alt="母亲" id="recall_Mom"/>
						<img src="images/index/loveHouse/recall/recall_Mom_flower.png" alt="头花" id="recall_Mom_flower"/>
						<img src="images/index/loveHouse/recall/recall_Mom_sasa.png" alt="头花" id="recall_Mom_sasa"/>
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher3" />
						<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher4" />
						<img src="images/index/loveHouse/recall/recall_child.png" alt="孩子" id="recall_child"/>
						<img src="images/index/loveHouse/recall/recall_child_eye1.png" alt="孩子_眼睛" id="recall_child_eye"/>						
			</div>`);
			}, 3000);
			let addten2 = $timeout(function() {
				$("#recall").append(`<div class="recallSce" style="display:none;">							
					<img src="images/index/loveHouse/recall/recall_bg4.png" alt="背景1" id="recall_bg4"/>
					<img src="images/index/loveHouse/recall/recall_bg3.png" alt="背景2" id="recall_bg3"/>
					<img src="images/index/loveHouse/recall/recall_bg1.png" alt="背景1" id="recall_bg1"/>
					<img src="images/index/loveHouse/recall/recall_bg2.png" alt="背景2" id="recall_bg2"/>
				
					<img src="images/index/loveHouse/recall/recall_i.png" alt="ILOVEYou" id="recall_i"/>
						<img src="images/index/loveHouse/recall/recall_o.png" alt="ILOVEYou" id="recall_o1"/>
					<img src="images/index/loveHouse/recall/recall_l.png" alt="ILOVEYou" id="recall_l"/>
					
				
					<img src="images/index/loveHouse/recall/recall_v.png" alt="ILOVEYou" id="recall_v"/>
					<img src="images/index/loveHouse/recall/recall_e.png" alt="ILOVEYou" id="recall_e"/>
					<img src="images/index/loveHouse/recall/recall_y.png" alt="ILOVEYou" id="recall_y"/>
					<img src="images/index/loveHouse/recall/recall_o.png" alt="ILOVEYou" id="recall_o2"/>
					<img src="images/index/loveHouse/recall/recall_u.png" alt="ILOVEYou" id="recall_u"/>
					
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="recall_cloud1" />
					<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="recall_cloud2" />
						
					
					
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute1.png" alt="气球" id="recall_ballute1"/>
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute2.png" alt="气球" id="recall_ballute2"/>
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute3.png" alt="气球" id="recall_ballute3"/>
					<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute4.png" alt="气球" id="recall_ballute4"/>
					<img src="images/index/loveHouse/recall/recall_tree1.png" alt="树" id="recall_tree1"/>
					<img src="images/index/loveHouse/recall/recall_tree2.png" alt="树" id="recall_tree2"/>
					<img src="images/index/loveHouse/recall/recall_tree3.png" alt="树" id="recall_tree3"/>
					<img src="images/index/loveHouse/recall/recall_tree4.png" alt="树" id="recall_tree4"/>
					<img src="images/index/loveHouse/recall/recall_tree5.png" alt="树" id="recall_tree5"/>
					<img src="images/index/loveHouse/recall/recall_tree6.png" alt="树" id="recall_tree6"/>
					<img src="images/index/loveHouse/recall/recall_flower.png" alt="花" id="recall_flower"/>
					
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star1"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star2"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star3"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star4"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star5"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star6"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star7"/>
					<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star8"/>
			
			</div>`);
			}, 5000)
			let addten3=$timeout(function(){
				$(".recallSce").fadeIn(2000);
			},5001)
			$timeout.cancel([addten1, addten2,addten3]);
		};
	}
	var levelFunc = new levelFun();
	
	
	//先行执行一次级别函数	
	
	
	$scope.level=function(count) {		
		if(0 <= count && count < 50) {		
			renkNmu1+= 1;			
			if(renkNmu1<= 1) {			
				levelFunc.rankFun1();
			}
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)
			console.log($scope.EXPNum+"%")
		
		} else if(50 <= count && count < 100) {
			renkNmu2 += 1;
			if(renkNmu2 <= 1) {
				levelFunc.rankFun2();
			}
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)
			
		} else if(100 <= count && count < 150) {
			renkNmu3 += 1;
			if(renkNmu3 <= 1) {
				levelFunc.rankFun3();
			}
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({"top": (97-$scope.EXPNum)+"%" }, 100)
		

		} else if(150 <= count && count < 200) {
				renkNmu4 += 1;
			if(renkNmu4 <= 1) {
				levelFunc.rankFun4();
			}
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)		

		} else if(200 <= count && count < 250) {
			renkNmu5 += 1;
			if(renkNmu5 <= 1) {
				levelFunc.rankFun5();
			}			
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)
				
		} else if(250 <= count && count < 300) {
			renkNmu6 += 1;
			if(renkNmu6 <= 1) {
				levelFunc.rankFun6();
			}
			
		
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)

		

		} else if(300 <= count && count < 350) {
			renkNmu7 += 1;
			if(renkNmu7 <= 1) {
				levelFunc.rankFun7();
			}		
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)

			

		} else if(350 <= count && count < 400) {
			renkNmu8 += 1;
			if(renkNmu8 <= 1) {
				levelFunc.rankFun8();
			}			
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)
			
		} else if(400 <= count && count < 450) {
			renkNmu9 += 1;
			if(renkNmu9 <= 1) {
				levelFunc.rankFun9();
			}			
			
		
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)

			

		}else if(450 <= count){
			renkNmu10 += 1;
			if(renkNmu10 <= 1) {
				levelFunc.rankFun10();
			}	
			console.log($scope.EXPNum)
			$(".green .progress .inner .water").animate({ "top": (100-$scope.EXPNum)+"%" }, 100)
			$(".green .progress .inner .water.w2").animate({ "top": (97-$scope.EXPNum)+"%" }, 100)
		
		}

	}
	$scope.upgrade = function(Num) {		
		$scope.count = $scope.count + Num;		
		console.log($scope.EXPNum)
		if(Math.round($scope.count / 5 * 100) / 100>=100){
			console.log("===")
			$scope.EXPNum=100;
			$scope.GiveXP=0;
			
		}else{
			$scope.EXPNum = Math.round($scope.count / 5 * 100) / 100;		
			$scope.GiveXP = 50 - (Math.round($scope.count*100)/100) % 50;
		}
		$scope.level($scope.count);
		
	};

	//级别函数



	class xitiebaPublic {
		//打开礼物窗口
		openGiftWindow() {
			return $scope.iSgift = true;
		};
		//关闭礼物窗口
		closeGiftWindow() {
			return $scope.iSgift = false;
		};
		//		改变礼物样式
		giftGet($index) {
			giftPlace = $index;
			let arr = $(".gift_item");
			for(let i = 0; i < arr.length; i++) {
				let a = arr[i];
				a.style.border = "5px solid transparent";
			};
			arr[$index].style.border = "5px solid #feacad";
			$scope.giftPrice = $($(".gift_item")[$index]).val();
		};
		//     添加礼物数量
		appendGiftNum() {
			$scope.giftNum += 1;
		};
		//     减少礼物数量
		subGiftNum() {
			$scope.giftNum -= 1;
			if($scope.giftNum < 1) {
				$scope.giftNum = 1;
			}
		};
		//		打开礼物说明
		openDec() {
			return $scope.iSgift_dec = true;
		};
		//关闭礼物说明
		closeDec() {
			return $scope.iSgift_dec = false;
		};
		//打开消息盒子
		openMsg() {
			return $scope.isMsg = true;
		};
		openIndexMsg() {
			return $scope.isMsg = true;
		};
		//关闭消息盒子
		colosMsg() {
			return $scope.isMsg = false;
		};
		//	发送弹幕
		sendMsg($index) {
			$scope.sendMsgNum++;
			let myDate = new Date();
			let NewDate = myDate.getFullYear() + "-" + myDate.getYear() + "-" + myDate.getDate();
			let NewHours = myDate.getHours() + ":" + myDate.getMinutes();
			let randomNum = parseInt(Math.random() * 9 + 1);
			$($('.lhMessage').children()[$index]).css("background-color", "#FA4F51")
			$($('.lhMessage').children()[$index]).css("color", "#fff")
			$scope.MsgArray.push({
				randomNum: randomNum,
				userName: $scope.userName,
				userImg: $scope.userImg,
				txt: $scope.lhMessage[$index].txt,
				Imgsrc: $scope.lhMessage[$index].Imgsrc,
				isemoji_img: true
			});
			$scope.LHrecord.push({
				recordTime: NewDate,
				userName: $scope.userName,
				userImg: $scope.userImg,
				txt: $scope.lhMessage[$index].txt,
				ImgSrc: $scope.lhMessage[$index].Imgsrc,
				recordHours: NewHours,
				isRecord: true,
				isemoji_img: true
			});
			$scope.BarMsg.push({
				userName: $scope.userName,
				txt: $scope.lhMessage[$index].txt,
				Imgsrc: $scope.lhMessage[$index].Imgsrc,
				isemoji_img: true
			})
			if($scope.sendMsgNum < 4) {
				$scope.upgrade(1);
			}

			
		};
		sendMsgHold($index) {
			$($('.lhMessage').children()[$index]).css("background-color", "#FA4F51")
			$($('.lhMessage').children()[$index]).css("color", "#fff")
		};
		sendRelease($index) {
			$($('.lhMessage').children()[$index]).css("background-color", "#fff")
			$($('.lhMessage').children()[$index]).css("color", "#000")
		};
		//发送礼物
		sendGift() {
			$scope.isGift_Danmaku_box = true;
			if($scope.giftArray.length > 2) {
				$scope.giftArray.splice(0, 1)
			}
			$scope.giftArray.push({
				userImg: $scope.userImg,
				userName: $scope.userName,
				Imgsrc: $scope.giftItems[giftPlace].giftImg,
				giftNum: $scope.giftNum
			})
			$scope.gift_Danmaku_box = true;
			$scope.upgrade($scope.giftItems[giftPlace].giftPrice / 10*$scope.giftNum);
		};

		//删除数据
		removeArray($index) {
			$scope.LHrecord.splice($index, 1);
			$scope.MsgArray.splice($index, 1);
			$scope.BarMsg.splice($index, 1);

		};

		DanmakuCount() {
			if($scope.MsgArray.length > 10) {
				$scope.MsgArray.splice(1, 1);
			}
		};

		//点赞
		dianzan() {
			$scope.dianzanNum++;
			if($scope.dianzanNum < 4) {
				$scope.upgrade(1);
			}
			var zanImg = Math.floor(Math.random() * 10);
			var zanClass = Math.floor(Math.random() * 3);
			$scope.add_zan.push({
				zanClass: zanClass,
				zanImg: zanPics[zanImg]
			});

		};
		openInvit() {
			$scope.isCard = false;
		};
	}
	$scope.xitiebaPublic = new xitiebaPublic();

}]);

PublicModule.directive("dianzan", function() {
	return {
		restrict: "E",
		template: '<img ng-repeat="add_zan in add_zan track by $index" class="zan-pics zan-pics{{::add_zan.zanClass}}" ng-src="{{::add_zan.zanImg}}">',
		replace: true
	}
});

PublicModule.directive("allMsg", function() {
	return {
		restrict: "E",
		template: `<div>
		<div class="Bar_box_close" on-tap="xitiebaPublic.colosMsg()" ng-show="isMsg"></div>
		<div class="lhMessage_box" ng-show="isMsg" ng-class="{true :'lhMsg'}[isMsg]">
			<div class="DIYMsgSend">
				<input type="text" ng-model="MyDIYMsg" placeholder="点击自定义编辑内容" class="input_diyMsg"/>
				<span class="DIYMsgS" on-tap="DIYMsgS()">
					发送
				</span>
			</div>
			<ul class="lhMessage">
				<li ng-repeat="lhMessage in lhMessage track by $index" class="lhmessageLi" on-touch="xitiebaPublic.sendMsg($index)" on-hold="xitiebaPublic.sendMsgHold($index)" on-release="xitiebaPublic.sendRelease($index)">
					<span>{{::lhMessage.txt}} </span>
					<img ng-src="{{::lhMessage.Imgsrc}}" alt="表情包" />
				</li>
			</ul>
		</div>
	</div>`,
		replace: true
	}
});

PublicModule.directive("giftBox", function() {
	return {
		restrict: "E",
		template: `<div>
<div class="gift_BigBox" ng-show="iSgift" ng-class="{true :'gift_show'}[iSgift]">
	<div class="gift_closeBox" on-tap="xitiebaPublic.closeGiftWindow()"></div>
	<div class="gift_box" >
		<!-- S 头部'礼物说明' -->
		<div class="gift_box_head">
			<span class="gift_box_head_W">?</span>
			<span class="gift_box_head_T" on-touch="xitiebaPublic.openDec()">礼物说明</span>
		</div>
		<!-- 头部'礼物说明' E -->
		<ul class="gift_box_cnt">
			<li class="gift_item" ng-value="{{giftItem.giftValue}}" ng-repeat="giftItem in giftItems track by $index" on-tap="xitiebaPublic.giftGet($index)">
				<div class="gift_picture">
					<img ng-src="{{::giftItem.giftImg}}" alt="鲜花" />
				</div>
				<div class="gift_title">
					<span class="gift_cost">
						{{::giftItem.giftPrice}}
					</span>
					<span class="gift_cost_img">			
					</span>
				</div>
			</li>
		</ul>
		<!-- S 加/减/发送 -->
		<div class="gift_footer">
			<div class="gift_footer_figure">
				<div class="gift_footer_minus_p" on-tap="xitiebaPublic.subGiftNum()">
				
					<i class="icon iconfont gift_footer_minus">&#xe63b;</i>
				</div>
				<div class="gift_footer_Num">{{giftNum}}</div>
				<div class="gift_footer_add_P" on-tap="xitiebaPublic.appendGiftNum()">
				
					 <i class="icon iconfont gift_footer_add">&#xe6e7;</i>
				</div>
			</div>
			<div class="gift_footer_price">{{giftPrice*giftNum}} <span class="gift_footer_priceSpan"></span> </div>
			<div class="gift_footer_send" on-tap="xitiebaPublic.sendGift()">赠送</div>
		</div>
		<!-- 加/减/发送 E -->
	</div>	
</div>
		
		
	<!-- S 礼物说明 -->
	<div class="gift_dec_all" ng-show="iSgift_dec" >
		<div class="gift_dec" ng-class="{true :'gift_dec2'}[iSgift_dec]">
			<div class="gift_dec_top">
				<div class="gift_dec_title">礼物说明</div>
				<div class="gift_dec_word">
					<p>1. 1元人民币=10个金币。</p>
					<p>2.       b. 赠送的礼物将会在扣除支付手续费以后到达新人账户，新人可以提现或者购买商城物品。</p>
				</div>

			</div>
			<button on-tap="xitiebaPublic.closeDec();">关闭</button>
		</div>

	</div>
	</div>`,
		replace: true
	}
});

// 1.求婚场景 
PublicModule.directive("marryScene", function() {
	return {
		restrict: "E",
		template: `<div class="MarryScene">
			<div id="scene1">
				<img src="images/index/loveHouse/MarryScene/MarryScene_BG1.png" alt="结婚场景背景1" class="MarryScene_BG1" />
				<img src=" images/index/loveHouse/MarryScene/MarryScene_BG2.png " alt="结婚场景背景1 " class="MarryScene_BG2 "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud1 "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud2 "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud3 "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud4 "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png " alt="云朵 " class="MarryScene_cloud MarryScene_cloud5 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree1.png " alt="树木 " class="MarryScene_tree MarryScene_tree1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree1.png " alt="树木 " class="MarryScene_tree MarryScene_tree2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree2.png " alt="树木 " class="MarryScene_tree MarryScene_tree3 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree2.png " alt="树木 " class="MarryScene_tree MarryScene_tree4 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree5 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree6 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree7 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_tree3.png " alt="树木 " class="MarryScene_tree MarryScene_tree8 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1.png " alt="观众 " class="MarryScene_audienc1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand1.png " alt="手 " class="MarryScene_audienc1_hand1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand2.png " alt="手 " class="MarryScene_audienc1_hand2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_Boy_eye2.png " alt="眼睛 " class="MarryScene_Boy_eye1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_Boy_eye2.png " alt="眼睛 " class="MarryScene_Boy_eye2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_audienc2.png " alt="观众 " class="MarryScene_audienc2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand1.png " alt="手 " class="MarryScene_audienc2_hand1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_audienc1_hand2.png " alt="手 " class="MarryScene_audienc2_hand2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_girl_eye2.png " alt="眼睛 " class="MarryScene_girl_eye1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_girl_eye3.png " alt="眼睛 " class="MarryScene_girl_eye2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_speak1.png " alt="观众特效 " class=" MarryScene_speak1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_speak1.png " alt="观众特效 " class=" MarryScene_speak2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_speak3.png " alt="观众特效 " class=" MarryScene_speak3 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_lace.png " alt="花边 " class="MarryScene_lace " />
				<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="MarryScene_Butterfly MarryScene_Butterfly1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="MarryScene_Butterfly MarryScene_Butterfly2 " />
				<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="MarryScene_Butterfly MarryScene_Butterfly3 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower3 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower4 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower5 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower6 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower7 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flower MarryScene_flower8 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_flower.png " alt="小花花 " class="MarryScene_flowerA MarryScene_flower9 "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart1 " />
				<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart2 " />
				<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart3 " />
				<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png " alt="爱心 " class="MarryScene_Heart MarryScene_Heart4 " />
			</div>
			<div id="marryBoy">
				<img src="images/index/loveHouse/MarryScene/MarryScene_boy.png " alt="男猪脚 " class="MarryScene_boy "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_hands.png " alt="手 " class="MarryScene_hands1 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_hands.png " alt="手 " class="MarryScene_hands2 "/>
				<img src="images/index/loveHouse/MarryScene/MarryScene_ring.png " alt="戒指 " class="MarryScene_ring "/>
				<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png " alt="闪光 "class="MarryScene_shine " />
			</div>
			<div id='marryGirl'>
				<img src="images/index/loveHouse/MarryScene/MarryScene_girl.png " alt="女猪脚 " class="MarryScene_girl "/>
				<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png " alt="眼泪 " class="MarryScene_tear "/>
				<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png " alt="腮红 " class="MarryScene__blusher " />
			</div>
		
		</div>`,
		replace: true
	}
});

// 2.结婚场景
PublicModule.directive("marry", function() {
	return {
		restrict: "E",
		template: `<div class="loveHouseCartoon2">		
			<img src="images/index/loveHouse/loveHouse2/loveHouse_BGBG2.png" alt="场景背景"class="loveHouse_BGBG2" />
			<img src="images/index/loveHouse/loveHouse2/loveHourse_adorn.png" alt="场景背景"class="loveHourse_adorn" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_BG2.png" alt="场景背景"class="loveHouse_BG2" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_leftPurdah.png" alt="场景背景"class="loveHouse_leftPurdah" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_rightPurdah.png" alt="场景背景"class="loveHouse_rightPurdah" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_leftaDorn.png" alt="场景背景"class="loveHouse_leftaDorn" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_rightaDorn.png" alt="场景背景"class="loveHouse_rightaDorn" />			
			<img src="images/index/loveHouse/loveHouse2/loveHouse_lamplight.png" alt="场景背景"class="loveHouse_lamplight1" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_lamplight.png" alt="场景背景"class="loveHouse_lamplight2" />			
			<img src="images/index/loveHouse/loveHouse2/loveHouse_siteFloor.png" alt="地板砖"class="loveHouse_siteFloor" />			
			<img src="images/index/loveHouse/loveHouse2/loveHouse_boy.png" alt="男猪脚"class="loveHouse_boy" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红"class="loveHouse_boyBlusher" />			
			<img src="images/index/loveHouse/loveHouse2/loveHouse_girl.png" alt="女猪脚"class="loveHouse_girl" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红"class="loveHouse_girlBlusher" />			
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart1" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart1" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart2" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart2" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart3" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart3" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart4" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart4" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart5" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart5" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart6" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart6" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart7" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart7" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_heart.png" alt="小红星"class="loveHouse_heart8" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="小黄星"class="loveHouse_pinkHeart8" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine1" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine2" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine3" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine4" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine5" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine6" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine7" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine8" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine9" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光灯"class="loveHouse_shine10" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute1.png" alt="气球1"class="loveHouse_ballute1" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute2.png" alt="气球2"class="loveHouse_ballute2" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute3.png" alt="气球3"class="loveHouse_ballute3" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute4.png" alt="气球4"class="loveHouse_ballute4" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_father.png" alt="父亲"class="loveHouse_father" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear1" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear2" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_mother.png" alt="母亲"class="loveHouse_mother" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear3" />
			<img src="images/index/loveHouse/loveHouse2/loveHouse_tear.png" alt="眼泪"class="loveHouse_tear loveHouse_tear4" />
			</div>`,
		replace: true,

	}
});

// 3.二人世界
PublicModule.directive("loveWorld", function() {
	return {
		restrict: "E",
		template: `	<div class="loveHouseCartoon1">
			
			<img src="images/index/loveHouse/loveHouse1/loveHouse_blind.png" alt="窗帘" class="loveHouseBlind" />
		

			<img src="images/index/loveHouse/loveHouse1/loveHouse_window.png" alt="窗户" class="loveHouseWindow" />
			

		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="loveHouseCloud" />
			

		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_cutlery.png" alt="餐具" class="loveHouseCutlery" />
			

			
			<img src="images/index/loveHouse/loveHouse1/loveHouse_TV.png" alt="电视" class="loveHouseTV" />
			

		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_hearth.png" alt="灶台" class="loveHouseHearth" />
			

			<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam2" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam3" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam4" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="loveHouseSteam5" />
			
			<img src="images/index/loveHouse/loveHouse1/loveHouse_foolr.png" alt="地板" class="loveHouseFoolr" />
		

		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_rug.png" alt="地毯" class="loveHouseRug" />

			<img src="images/index/loveHouse/loveHouse1/loveHouse_carpet.png" alt="地毯" class="loveHouseCarpet" />
			

		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_desk.png" alt="桌子" class="loveHouseDesk" />
		

		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_cup.png" alt="杯子" class="loveHouseCup" />
			
			
			<img src="images/index/loveHouse/loveHouse1/loveHouse_dish.png" alt="盘子" class="loveHouseDish" />
		

			
			<img src="images/index/loveHouse/loveHouse1/loveHouse_boy.png" alt="男猪脚" class="loveHouseBoy" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_boyEye.png" alt="眼睛" class="loveHouse_boyEye loveHouse_boyEye1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_boyEye.png" alt="眼睛" class="loveHouse_boyEye loveHouse_boyEye2" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_ladle.png" alt="勺子" class="loveHouse_ladle" />
			

			
			<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="水蒸气" class="loveHouseReek1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="水蒸气" class="loveHouseReek2" />
			

		
		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_girl.png" alt="女猪脚" class="loveHouseGirl" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_girlEye.png" alt="左眼" class="loveHouse_girlEye1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_girlEye.png" alt="右眼" class="loveHouse_girlEye2" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_mouth1.png" alt="嘴巴" class="loveHouse_mouth" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_leftHand.png" alt="左手" class="loveHouse_leftHand" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_rightHand.png" alt="右手" class="loveHouse_rightHand" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="loveHouse_blusher loveHouse_blusher1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="loveHouse_blusher loveHouse_blusher2" />
		
		
			<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart2" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart3" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="loveHouseHeart4" />
			
				

		</div>`,
		replace: true
	}
});

// 4.怀孕期间
PublicModule.directive("pregNan", function() {
	return {
		restrict: "E",
		template: `<div class="pregNan">
		<img src="images/index/loveHouse/pregNan/pregNan_bg.png" alt="背景"class="pregNan_bg" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_foolr.png" alt="地板"class="pregNan_foolr" />
		<img src="images/index/loveHouse/pregNan/pregNan_window.png" alt="窗户"class="pregNan_window" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="pregNan_cloud pregNan_cloud1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="pregNan_cloud pregNan_cloud2" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="pregNan_cloud pregNan_cloud3" />
		<img src="images/index/loveHouse/pregNan/pregNan_blind.png" alt="窗帘"class="pregNan_blind" />
		<img src="images/index/loveHouse/pregNan/pregNan_mural1.png" alt="壁画"class="pregNan_mural1" />
		<img src="images/index/loveHouse/pregNan/pregNan_mural2.png" alt="壁画"class="pregNan_mural2" />
		<img src="images/index/loveHouse/pregNan/pregNan_mural3.png" alt="壁画"class="pregNan_mural3" />
		<img src="images/index/loveHouse/pregNan/pregNan_lamp1.png" alt="灯"class="pregNan_lamp1" />
		<img src="images/index/loveHouse/pregNan/pregNan_face.png" alt="小笑脸"class="pregNan_face" />
		
			
		<!-- 掉着的星星 -->
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star1" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star2" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star3" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star4" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star5" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star6" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star7" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star8" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star9" />
		<img src="images/index/loveHouse/pregNan/pregNan_star.png" alt="星星"class="pregNan_star pregNan_star10" />
		
		<!-- 地毯 -->
		<img src="images/index/loveHouse/pregNan/pregNan_rug.png" alt="地毯"class="pregNan_rug" />
			<!-- 枕头 -->
			<img src="images/index/loveHouse/pregNan/pregNan_tomato.png" alt="枕头"class="pregNan_tomato" />
			<img src="images/index/loveHouse/pregNan/pregNan_pillow1.png" alt="枕头"class="pregNan_pillow1" />
			<img src="images/index/loveHouse/pregNan/pregNan_pillow2.png" alt="枕头"class="pregNan_pillow2" />
			<img src="images/index/loveHouse/pregNan/pregNan_pillow2.png" alt="枕头"class="pregNan_pillow3" />
			<!-- 果盘 -->
			<img src="images/index/loveHouse/pregNan/pregNan_compote.png" alt="果盘"class="pregNan_compote" />
		<!-- 男猪脚 -->
		<img src="images/index/loveHouse/pregNan/pregNan_boy.png" alt="男猪脚"class="pregNan_boy" />
			<img src="images/index/loveHouse/pregNan/pregNan_foot.png" alt="脚"class="pregNan_foot" />
			<img src="images/index/loveHouse/pregNan/pregNan_boy_eye.png" alt="眼睛"class="pregNan_boy_eye" />
			
	
		
	<!-- 女猪脚 -->
		<img src="images/index/loveHouse/pregNan/pregNan_girl.png" alt="女猪脚"class="pregNan_girl" />
			<img src="images/index/loveHouse/pregNan/pregNan_hands.png" alt="手"class="pregNan_hands" />
			<img src="images/index/loveHouse/pregNan/pregNan_girl_eye.png" alt="眼睛"class="pregNan_girl_eye" />
			
	<!-- 书本 -->
		<img src="images/index/loveHouse/pregNan/pregNan_book.png" alt="书本"class="pregNan_book" />
	<!-- 爱心 -->
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart1" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart2" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart3" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart4" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart5" />
	<!-- 蝴蝶 -->
			<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="pregNan_Butterfly pregNan_Butterfly1 "/>
			<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="pregNan_Butterfly pregNan_Butterfly2 " />
			<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " class="pregNan_Butterfly pregNan_Butterfly3 "/>

	
	
	
	
	</div>`,
		replace: true
	}
});

// 5.初为人母
PublicModule.directive("newMom", function() {
	return {
		restrict: "E",
		template: `<div class="newLife">
		<img src="images/index/loveHouse/newLife/newLife_bg1.png" alt="背景" class="newLife_bg1" />
		<img src="images/index/loveHouse/newLife/newLife_bg2.png" alt="背景" class="newLife_bg2" />
		<img src="images/index/loveHouse/newLife/newLife_floor.png" alt="地板" class="newLife_floor" />
		<img src="images/index/loveHouse/newLife/newLife_window.png" alt="窗户" class="newLife_window" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="newLife_cloud1" />
		<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="玻璃" class="loveHouse_glass1" />
		<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="玻璃" class="loveHouse_glass2" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="newLife_cloud" />
		
		<img src="images/index/loveHouse/newLife/newLife_lamp.png" alt="灯座" class="newLife_lamp" />
		<img src="images/index/loveHouse/newLife/newLife_pendantLamp1.png" alt="吊灯" class="newLife_pendantLamp1" />
		<img src="images/index/loveHouse/newLife/newLife_pendantLamp2.png" alt="吊灯" class="newLife_pendantLamp2" />
		<img src="images/index/loveHouse/newLife/newLife_pendantLamp3.png" alt="吊灯" class="newLife_pendantLamp3" />
		<img src="images/index/loveHouse/newLife/newLife_pendantLamp4.png" alt="吊灯" class="newLife_pendantLamp4" />
		<img src="images/index/loveHouse/newLife/newLife_table.png" alt="桌子" class="newLife_table" />
		<img src="images/index/loveHouse/newLife/newLife_cup.png" alt="杯子" class="newLife_cup" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="newLife_Steam1" />
			<img src="images/index/loveHouse/loveHouse1/loveHouse_steam.png" alt="蒸汽" class="newLife_Steam2" />
			
		<img src="images/index/loveHouse/newLife/newLife_pot.png" alt="壶" class="newLife_pot" />
		<img src="images/index/loveHouse/newLife/newLife_book.png" alt="书" class="newLife_book1" />
		<img src="images/index/loveHouse/newLife/newLife_book.png" alt="书" class="newLife_book2" />
		<img src="images/index/loveHouse/newLife/newLife_rug.png" alt="地毯" class="newLife_rug" />
		<img src="images/index/loveHouse/newLife/newLife_boy_cnt.png" alt="男猪脚_身体" class="newLife_boy_cnt" />
		<img src="images/index/loveHouse/newLife/newLife_boy_head.png" alt="男猪脚_头部" class="newLife_boy_head" />
		
		
		<img src="images/index/loveHouse/newLife/newLife_boy_hands2.png" alt="男猪脚_手" class="newLife_boy_hands1" />
		
		<img src="images/index/loveHouse/newLife/newLife_boy_hands.png" alt="男猪脚_手" class="newLife_boy_hands2" />
		
		<img src="images/index/loveHouse/newLife/newLife_baby.png" alt="BaBy" class="newLife_baby" />
		<img src="images/index/loveHouse/newLife/newLife_baby_mouth.png" alt="嘴巴" class="newLife_baby_mouth" />
		<img src="images/index/loveHouse/newLife/newLife_babyEye.png" alt="眼睛" class="newLife_babyEye" />
		<img src="images/index/loveHouse/newLife/newLife_tear.png" alt="眼泪" class="newLife_tear1" />
		<img src="images/index/loveHouse/newLife/newLife_tear.png" alt="眼泪" class="newLife_tear2" />		
		<img src="images/index/loveHouse/newLife/newLife_try.png" alt="哭声" class="newLife_try" />
	
		
		<img src="images/index/loveHouse/newLife/newLife_gril_head.png" alt="女猪脚_头部" class="newLife_gril_head" />
		<img src="images/index/loveHouse/newLife/newLife_gril_eye1.png" alt="女猪脚_眼睛" class="newLife_gril_eye" />
		<img src="images/index/loveHouse/newLife/newLife_gril_cnt.png" alt="女猪脚_身体" class="newLife_gril_cnt" />
		<img src="images/index/loveHouse/newLife/newLife_gril_hand.png" alt="女猪脚_手" class="newLife_gril_hand1" />
		<img src="images/index/loveHouse/newLife/newLife_gril_hand2.png" alt="女猪脚_手" class="newLife_gril_hand2" />
		<img src="images/index/loveHouse/newLife/newLife_nai.png" alt="奶" class="newLife_nai"/>
		
		<img src="images/index/loveHouse/newLife/newLife_shoe.png" alt="鞋子" class="newLife_shoe1" />
		<img src="images/index/loveHouse/newLife/newLife_shoe.png" alt="鞋子" class="newLife_shoe2" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine1" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine2" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine3" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine4" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine5" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine6" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine7" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine8" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_shine.png" alt="闪光" class="newLife_shine newLife_shine9" />
		<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star1" />
		<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star2" />
		<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star3" />
		<img src="images/index/loveHouse/newLife/newLife_star.png" alt="星星" class="newLife_star4" />
		<img src="images/index/loveHouse/newLife/newLife_cage.png" alt="罩罩" class="newLife_cage" />
		<img src="images/index/loveHouse/newLife/newLife_kato.png" alt="章鱼" class="newLife_kato" />
		<img src="images/index/loveHouse/newLife/newLife_pingpang.png" alt="章鱼" class="newLife_pingpang" />	
	</div>`,
		replace: true
	}
});

// 6.家庭旅行
PublicModule.directive("travelBox", function() {
	return {
		restrict: "E",
		template: `<div id="travel">
		<img src="images/index/loveHouse/travel/travel_bg1.png" alt="背景1"  id="travel_bg1"/>
		<img src="images/index/loveHouse/travel/travel_bg2.png" alt="背景2"  id="travel_bg2"/>
		<img src="images/index/loveHouse/travel/travel_flower.png" alt="地板"  id="travel_flower"/>
		<img src="images/index/loveHouse/travel/travel_byobu.png" alt="屏风"  id="travel_byobu"/>
		
		<img src="images/index/loveHouse/travel/travel_lamp.png" alt="灯1"  id="travel_lamp1"/>
		<img src="images/index/loveHouse/travel/travel_lamp2.png" alt="灯2"  id="travel_lamp2"/>
		<img src="images/index/loveHouse/travel/travel_lamp.png" alt="灯3"  id="travel_lamp3"/>
		<img src="images/index/loveHouse/travel/travel_Tlamp.png" alt="灯3"  id="travel_lamp4"/>
		<img src="images/index/loveHouse/travel/travel_click.png" alt="钟"  id="travel_click"/>
		<img src="images/index/loveHouse/travel/travel_second.png" alt="钟"  id="travel_second"/>
		<img src="images/index/loveHouse/travel/travel_mural.png" alt="挂画"  id="travel_mural"/>
		<img src="images/index/loveHouse/travel/travel_rug.png" alt="地毯"  id="travel_rug"/>
		<img src="images/index/loveHouse/travel/travel_girl.png" alt="女猪脚"  id="travel_girl"/>
		<img src="images/index/loveHouse/travel/travel_girl_hand.png" alt="女猪脚_手" id="travel_girl_hand"/>
		<img src="images/index/loveHouse/travel/travel_child.png" alt="小孩"  id="travel_child"/>
		<img src="images/index/loveHouse/travel/travel_child_eye1.png" alt="小孩眼睛"  id="travel_child_eye"/>
		
		<img src="images/index/loveHouse/travel/travel_boy.png" alt="男猪脚"  id="travel_boy"/>
		<img src="images/index/loveHouse/travel/travel_boy_eye.png" alt="男眼睛"  id="travel_boy_eye1"/>
		<img src="images/index/loveHouse/travel/travel_boy_eye.png" alt="男眼睛"  id="travel_boy_eye2"/>
		<img src="images/index/loveHouse/travel/travel_bottle.png" alt="瓶子"  id="travel_bottle"/>
		<img src="images/index/loveHouse/travel/travel_clothes1.png" alt="衣服"  id="travel_clothes1"/>
		<img src="images/index/loveHouse/travel/travel_clothes2.png" alt="衣服"  id="travel_clothes2"/>
		<img src="images/index/loveHouse/travel/travel_clothes3.png" alt="衣服"  id="travel_clothes3"/>
		<img src="images/index/loveHouse/travel/travel_camera.png" alt="相机"  id="travel_camera"/>
		<img src="images/index/loveHouse/travel/travel_box.png" alt="箱子"  id="travel_box"/>
		<img src="images/index/loveHouse/travel/travel_cable.png" alt="数据线"  id="travel_cable"/>
		<img src="images/index/loveHouse/travel/travel_comb.png" alt="梳子"  id="travel_comb"/>
		<img src="images/index/loveHouse/travel/travel_vial.png" alt="药瓶"  id="travel_vial"/>
		<img src="images/index/loveHouse/travel/travel_cap.png" alt="帽子"  id="travel_cap"/>
		<img src="images/index/loveHouse/travel/travel_toothbrush.png" alt="牙刷"  id="travel_toothbrush"/>
		<img src="images/index/loveHouse/travel/travel_Flugkarte.png" alt="飞机票"  id="travel_Flugkarte"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star1"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star2"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star3"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star4"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star5"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star6"/>
		<img src="images/index/loveHouse/travel/travel_star.png" alt="星星"  id="travel_star7"/>
		<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart1" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart2" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart3" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart4" />
			<img src="images/index/loveHouse/pregNan/pregNan_heart.png" alt="爱心" class="pregNan_Heart pregNan_Heart5" />
	

	</div>`,
		replace: true
	}
});

// 7.送孩子上学
PublicModule.directive("goSchool", function() {
	return {
		restrict: "E",
		template: `<div id="farewell">
		<img src="images/index/loveHouse/farewell/farewell_clelo.png" alt="背景1" id="farewell_clelo"/>
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="farewell_cloud1" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="farewell_cloud2" />
		<img src="images/index/loveHouse/farewell/farewell_tree1.png" alt="草丛" id="farewell_tree1" />
		
		<img src="images/index/loveHouse/farewell/farewell_floor.png" alt="地板" id="farewell_floor"/>
		<img src="images/index/loveHouse/farewell/farewell_house.png" alt="背景1" id="farewell_house"/>
		
		<img src="images/index/loveHouse/farewell/farewell_tree2.png" alt="草丛" id="farewell_tree2" />
		<img src="images/index/loveHouse/recall/recall_tree5.png" alt="草丛" id="farewell_tree3" />
		<img src="images/index/loveHouse/farewell/farewell_tree3.png" alt="草丛" id="farewell_tree4" />	
		<img src="images/index/loveHouse/farewell/farewell_leaf1.png" alt="叶子" id="farewell_leaf1" />	
		<img src="images/index/loveHouse/farewell/farewell_leaf1.png" alt="叶子" id="farewell_leaf2" />	
		<img src="images/index/loveHouse/farewell/farewell_leaf1.png" alt="叶子" id="farewell_leaf3" />	
		<img src="images/index/loveHouse/farewell/farewell_leaf2.png" alt="叶子" id="farewell_leaf4" />	
		<img src="images/index/loveHouse/farewell/farewell_leaf2.png" alt="叶子" id="farewell_leaf5" />	
		<img src="images/index/loveHouse/farewell/farewell_Ded.png" alt="父亲" id="farewell_Ded" />
		<img src="images/index/loveHouse/farewell/farewell_Ded_hand.png" alt="父亲_手" id="farewell_Ded_hand" />
		<img src="images/index/loveHouse/farewell/farewell_Mom.png" alt="母亲" id="farewell_Mom" />
		<img src="images/index/loveHouse/farewell/farewell_Mom_eye.png" alt="母亲_眼睛" id="farewell_Mom_eye" />
			<img src="images/index/loveHouse/farewell/farewell_Mom_eye2.png" alt="母亲_眼睛" id="farewell_Mom_eye2" />
			<img src="images/index/loveHouse/farewell/farewell_Mom_eye2.png" alt="母亲_眼睛" id="farewell_Mom_eye3" />
		<img src="images/index/loveHouse/farewell/farewell_Mom_tear.png" alt="母亲_眼泪" id="farewell_Mom_tear1" />
		<img src="images/index/loveHouse/farewell/farewell_Mom_tear.png" alt="母亲_眼泪" id="farewell_Mom_tear2" />
		<img src="images/index/loveHouse/farewell/farewell_girl_hand.png" alt="孩子_手" id="farewell_girl_hand" />
		
		<img src="images/index/loveHouse/farewell/farewell_girl_body.png" alt="孩子_身体" id="farewell_girl_body" />
		
		<img src="images/index/loveHouse/farewell/farewell_girl_head.png" alt="孩子_头" id="farewell_girl_head" />
		
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly1"/>
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly2" />
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly3"/>
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly4" />
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png " alt="蝴蝶 " id="farewell_Butterfly5"/>
	
		
		
		
	</div>`,
		replace: true
	}
});

// 8.孩子带对象回家
PublicModule.directive("meetPar", function() {
	return {
		restrict: "E",
		template: `<div class="MeetPar">
		<img src="images/index/loveHouse/pregNan/pregNan_bg.png" alt="背景" class="meetpar_bg"/>
		<img src="images/index/loveHouse/meetPar/meetPar_window.png" alt="窗户" class="meetPar_window"/>
		<img src="images/index/loveHouse/meetPar/meetPar_blind.png" alt="窗帘" class="meetPar_blind"/>
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="meetPar_cloud1" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" class="meetPar_cloud2" />
		<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="光圈" class="meetPar_glass1" />
		<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="光圈" class="meetPar_glass2" />
		<img src="images/index/loveHouse/newLife/loveHouse_glass.png" alt="光圈" class="meetPar_glass3" />
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png" alt="蝴蝶" class="meetPar_Butterfly1" />
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png" alt="蝴蝶" class="meetPar_Butterfly2" />
		<img src="images/index/loveHouse/MarryScene/MarryScene_Butterfly.png" alt="蝴蝶" class="meetPar_Butterfly3" />	
		<img src="images/index/loveHouse/meetPar/meetPar_lamp.png" alt="灯1" class="meetPar_lamp1"/>
		<img src="images/index/loveHouse/meetPar/meetPar_lamp.png" alt="灯2" class="meetPar_lamp2"/>
		<img src="images/index/loveHouse/meetPar/meetPar_lamp.png" alt="灯3" class="meetPar_lamp3"/>
		<img src="images/index/loveHouse/meetPar/meetPar_book.png" alt="书1" class="meetPar_book1"/>
		<img src="images/index/loveHouse/meetPar/meetPar_book.png" alt="书2" class="meetPar_book2"/>
		<img src="images/index/loveHouse/meetPar/meetPar_mural1.png" alt="壁画" class="meetPar_mural1"/>
		<img src="images/index/loveHouse/meetPar/meetPar_mural2.png" alt="壁画" class="meetPar_mural2"/>
		<img src="images/index/loveHouse/meetPar/meetPar_water.png" alt="饮水机" class="meetPar_water"/>		
		<img src="images/index/loveHouse/meetPar/meetPar_floor.png" alt="地板" class="meetPar_floor"/>
		
		<img src="images/index/loveHouse/meetPar/meetPar_sofa1.png" alt="沙发1" class="meetPar_sofa1"/>
		<img src="images/index/loveHouse/meetPar/meetPar_sofa2.png" alt="沙发2" class="meetPar_sofa2"/>
		<img src="images/index/loveHouse/meetPar/meetPar_sofa2.png" alt="沙发3" class="meetPar_sofa3"/>
		<img src="images/index/loveHouse/meetPar/meetPar_table.png" alt="桌子" class="meetPar_table"/>
		<img src="images/index/loveHouse/meetPar/meetPar_Mom.png" alt="妈妈" class="meetPar_Mom"/>
		<img src="images/index/loveHouse/meetPar/meetPar_Mom_hand.png" alt="妈妈_手" class="meetPar_Mom_hand"/>
		
		<img src="images/index/loveHouse/meetPar/meetPar_Ded.png" alt="爸爸" class="meetPar_Ded"/>	
		<img src="images/index/loveHouse/meetPar/meetPar_Ded_mouth1.png" alt="爸爸_嘴巴" class="meetPar_Ded_mouth"/>	
		<img src="images/index/loveHouse/meetPar/meetPar_boy.png" alt="boy" class="meetPar_boy"/>
		<img src="images/index/loveHouse/meetPar/meetPar_boy_mouth1.png" alt="boy_嘴巴" class="meetPar_boy_mouth"/>
		<img src="images/index/loveHouse/meetPar/meetPar_boy_blusher.png" alt="boy_腮红" class="meetPar_boy_blusher"/>
		<img src="images/index/loveHouse/meetPar/meetPar_girl_body.png" alt="女主_身体" class="meetPar_girl_body"/>
		<img src="images/index/loveHouse/meetPar/meetPar_girl_head.png" alt="女主_头" class="meetPar_girl_head"/>
		<img src="images/index/loveHouse/meetPar/meetPar_boy_blusher.png" alt="girl_腮红" class="meetPar_girl_blusher"/>		
		<img src="images/index/loveHouse/meetPar/meetPar_girl_hand.png" alt="女主-手" class="meetPar_girl_hand"/>
		
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam1" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam2" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam3" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam4" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam5" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam6" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam7" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_reek.png" alt="蒸汽" class="meetPar_steam meetPar_steam8" />
		<img src="images/index/loveHouse/meetPar/meetPar_rug.png" alt="地毯" class="meetPar_rug"/>	
		
		<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="爱心" class="meetPar_heart1" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="meetPar_heart2" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="爱心" class="meetPar_heart3" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_heart.png" alt="爱心" class="meetPar_heart4" />
		<img src="images/index/loveHouse/loveHouse2/loveHouse_pinkHeart.png" alt="爱心" class="meetPar_heart5" />
		
		<img src="images/index/loveHouse/dialogue.png" alt="对话" class="meetPar_dialogue1" />
		<img src="images/index/loveHouse/dialogue.png" alt="对话" class="meetPar_dialogue2" />
		
		
		
		
	</div>`,
		replace: true
	}
});

// 9.家里
PublicModule.directive("familyBox", function() {
	return {
		restrict: "E",
		template: `<div id="family">
		<img src="images/index/loveHouse/pregNan/pregNan_bg.png" alt="背景1" id="family_bg" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_foolr.png" alt="地板" id="family_floor" />
		<img src="images/index/loveHouse/family/family_lamp.png" alt="灯1" id="family_lamp1" />
		<img src="images/index/loveHouse/family/family_lamp.png" alt="灯2" id="family_lamp2" />
		<img src="images/index/loveHouse/family/family_lamp.png" alt="灯3" id="family_lamp3" />
		<img src="images/index/loveHouse/family/family_bookcase.png" alt="书柜" id="family_bookcase" />
		<img src="images/index/loveHouse/family/family_locker.png" alt="抽屉" id="family_locker" />
		<img src="images/index/loveHouse/family/family_byobu.png" alt="屏风" id="family_byobu" />
		<img src="images/index/loveHouse/family/family_mural.png" alt="壁画" id="family_mural" />		
		<img src="images/index/loveHouse/family/family_Ded.png" alt="Ded" id="family_Ded" />
		
		<img src="images/index/loveHouse/family/family_boy_hand1.png" alt="boy身体" id="family_boy_hand1" />
		<img src="images/index/loveHouse/family/family_boy_hand2.png" alt="boy身体" id="family_boy_hand2" />
		<img src="images/index/loveHouse/family/family_boy_body.png" alt="boy身体" id="family_boy_body" />
		
		<img src="images/index/loveHouse/family/family_rug_chair.png" alt="地毯" id="family_rug_chair" />
	
		<img src="images/index/loveHouse/family/family_girl.png" alt="女猪脚" id="family_girl" />
		<img src="images/index/loveHouse/family/family_girl_eye2.png" alt="女猪脚_眼睛" id="family_girl_eye" />
		<img src="images/index/loveHouse/family/family_mouth1.png" alt="小孩嘴巴" id="family_mouth" />
		
		
		<img src="images/index/loveHouse/family/family_Mom.png" alt="Mom" id="family_Mom" />
		
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star1" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star2" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star3" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star4" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star5" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star6" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star7" />		
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star9" />
		<img src="images/index/loveHouse/family/family_star.png" alt="红星" id="family_star8" />
		
		<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker1" />
		<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker5" />
		<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker2" />
		<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker6" />
		<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker3" />
		<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker7" />
		<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker4" />
		<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker8" />
		<img src="images/index/loveHouse/family/family_flicker.png" alt="星星" id="family_flicker9" />
		<img src="images/index/loveHouse/family/family_flicker2.png" alt="星星" id="family_flicker10" />
		
	
		
		
		
		
		
	</div>	`,
		replace: true
	}
});

// 10.家里
PublicModule.directive("recAll", function() {
	return {
		restrict: "E",
		template: `<div id='recall'>
		<img src="images/index/loveHouse/recall/recall_bg4.png" alt="背景1" id="recall_bg4"/>
		<img src="images/index/loveHouse/recall/recall_bg3.png" alt="背景2" id="recall_bg3"/>
		<img src="images/index/loveHouse/recall/recall_bg1.png" alt="背景1" id="recall_bg1"/>
		<img src="images/index/loveHouse/recall/recall_bg2.png" alt="背景2" id="recall_bg2"/>	
		<img src="images/index/loveHouse/recall/recall_i.png" alt="ILOVEYou" id="recall_i"/>
		<img src="images/index/loveHouse/recall/recall_o.png" alt="ILOVEYou" id="recall_o1"/>
		<img src="images/index/loveHouse/recall/recall_l.png" alt="ILOVEYou" id="recall_l"/>	
		<img src="images/index/loveHouse/recall/recall_v.png" alt="ILOVEYou" id="recall_v"/>
		<img src="images/index/loveHouse/recall/recall_e.png" alt="ILOVEYou" id="recall_e"/>
		<img src="images/index/loveHouse/recall/recall_y.png" alt="ILOVEYou" id="recall_y"/>
		<img src="images/index/loveHouse/recall/recall_o.png" alt="ILOVEYou" id="recall_o2"/>
		<img src="images/index/loveHouse/recall/recall_u.png" alt="ILOVEYou" id="recall_u"/>		
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="recall_cloud1" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_cloud.png" alt="云朵" id="recall_cloud2" />		
		<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute1.png" alt="气球" id="recall_ballute1"/>
		<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute2.png" alt="气球" id="recall_ballute2"/>
		<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute3.png" alt="气球" id="recall_ballute3"/>
		<img src="images/index/loveHouse/loveHouse2/loveHouse_ballute4.png" alt="气球" id="recall_ballute4"/>
		<img src="images/index/loveHouse/recall/recall_seat.png" alt="椅子" id="recall_seat"/>
		<img src="images/index/loveHouse/recall/recall_boy.png" alt="男猪脚" id="recall_boy"/>
		<img src="images/index/loveHouse/recall/recall_boy_hand.png" alt="男猪脚_手" id="recall_boy_hand"/>
		<img src="images/index/loveHouse/recall/recall_boy_eye1.png" alt="男猪脚_眼睛" id="recall_boy_eye"/>		
		<img src="images/index/loveHouse/recall/recall_girl.png" alt="女猪脚" id="recall_girl"/>
		<img src="images/index/loveHouse/recall/recall_girl_hand.png" alt="女猪脚_手" id="recall_girl_hand"/>
		<img src="images/index/loveHouse/recall/recall_girl_eye1.png" alt="女猪脚_眼睛" id="recall_girl_eye"/>	
		<img src="images/index/loveHouse/recall/recall_Ded.png" alt="父亲" id="recall_Ded"/>
		<img src="images/index/loveHouse/recall/recall_Ded_head.png" alt="父亲_头部" id="recall_Ded_head"/>
		<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher1" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher2" />
		<img src="images/index/loveHouse/recall/recall_Mom.png" alt="母亲" id="recall_Mom"/>
		<img src="images/index/loveHouse/recall/recall_Mom_flower.png" alt="头花" id="recall_Mom_flower"/>
		<img src="images/index/loveHouse/recall/recall_Mom_sasa.png" alt="头花" id="recall_Mom_sasa"/>
		<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher3" />
		<img src="images/index/loveHouse/loveHouse1/loveHouse_blusher.png" alt="腮红" class="recall_blusher recall_blusher4" />
		<img src="images/index/loveHouse/recall/recall_child.png" alt="孩子" id="recall_child"/>
		<img src="images/index/loveHouse/recall/recall_child_eye1.png" alt="孩子_眼睛" id="recall_child_eye"/>
		<img src="images/index/loveHouse/recall/recall_tree1.png" alt="树" id="recall_tree1"/>
		<img src="images/index/loveHouse/recall/recall_tree2.png" alt="树" id="recall_tree2"/>
		<img src="images/index/loveHouse/recall/recall_tree3.png" alt="树" id="recall_tree3"/>
		<img src="images/index/loveHouse/recall/recall_tree4.png" alt="树" id="recall_tree4"/>
		<img src="images/index/loveHouse/recall/recall_tree5.png" alt="树" id="recall_tree5"/>
		<img src="images/index/loveHouse/recall/recall_tree6.png" alt="树" id="recall_tree6"/>
		<img src="images/index/loveHouse/recall/recall_flower.png" alt="花" id="recall_flower"/>		
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star1"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star2"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star3"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star4"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star5"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star6"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star7"/>
		<img src="images/index/loveHouse/recall/recall_star.png" alt="星星" id="recall_star8"/>			
	</div>
	`,
		replace: true
	}
});